package com.example.serverapi.demo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "server-service", path = "/server-service")
public interface ServerApi {

    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    Map<String, Object> hello(@RequestParam("name") String name);

}